public class zy2 {
    public static void main(String[] args) {
        int[] arr = {1, 22, 13, 44, 15, 66, 17, 88};
        for (int i = 0; i < arr.length; i++) {
            if (i % 2 != 0) {
                System.out.println("索引数：" + i);
            }
            if (arr[i] % 2 != 0) {
                System.out.println("相对应的元素数：" + arr[i]);
            }
        }
    }
}
